package highlighter.ast.impl;

import highlighter.visitor.IASTVisitor;

public class WhileStmt extends Statement {

	private RelationalExpr relExpr;
	private Body body;

	public WhileStmt(RelationalExpr relExpr, Body body) {
		super();
		this.relExpr = relExpr;
		this.body = body;
	}

	public RelationalExpr getRelExpr() {
		return relExpr;
	}

	public Body getBody() {
		return body;
	}
	
	@Override
	public Object accept(IASTVisitor visitor) {
		return visitor.visit(this);
	}

}
